package com.enhe.gck.communal;

public enum PublicReturn {
    ORDER_0("失败", "重量异常，不小于0"),
    ORDER_1("失败", "销售商无可用充值记录，请充值"),
    ORDER_2("失败", "销售商无可用产品充值记录，请充值"),
    ORDER_3("失败", "销售商可下单吨数不足，请充值"),
    ORDER_4("失败", "当前散户订单，供应商选择无效"),
    ORDER_5("失败", "当前IC卡号已使用，请换张卡重新读写"),
    ORDER_6("失败", "散装重量不在设定范围内，请重新输入"),
    ORDER_10("失败", "数据不全，请检查数据"),
    ORDER_11("失败", "散户无可用充值记录，请充值"),
    ORDER_21("失败", "散户无可用产品充值记录，请充值"),
    ORDER_31("失败", "散户可下单吨数不足，请充值"),
    ORDER_12("失败", "订单号不存在或失效"),
    ORDER_13("失败", "下单量不在设定范围"),
    ORDER_14("失败", "订单金额回退失败"),
    ORDER_15("失败", "选择产品信息不全"),
    ORDER_16("失败", "散装下单请输入重量"),
    ORDER_17("失败", "袋装下单请输入袋数"),
    ORDER_18("失败", "异常，无散户信息"),
    ORDER_19("失败", "异常，散户未关联经销商"),
    ORDER_20("失败", "未选择产品"),
    ORDER_22("失败", "产品信息为空"),
    ORDER_23("失败", "产品信息类型为空"),
    ORDER_24("失败", "产品信息配送运费为空"),
    ORDER_25("失败", "提货码模板为空，请联系管理员"),
    ORDER_26("失败", "当前订单非装货中，修改失败"),
    ORDER_27("失败", "当前订单非待换卡，修改失败"),
    ORDER_28("失败", "异常，无经销商信息"),
    ORDER_29("失败", "异常，二级经销商未关联一级经销商"),
    ORDER_30("失败", "批量下单数据不全，请检查数据"),
    ORDER_32("失败", "袋数请输入5或10的整数倍"),
    ORDER_33("失败", "产品信息配送类型为空"),
    ORDER_34("失败", "当前产品无购买记录，请充值"),
    ORDER_35("失败", "订单状态不是已创建，不允许作废"),

    ORDER_51("失败", "当前IC卡号销售订单已使用，请换张卡重新读写"),
    ORDER_52("失败", "当前IC卡号供货订单已使用，请换张卡重新读写"),
    ORDER_53("失败", "当前IC卡号倒料订单已使用，请换张卡重新读写"),

    IC_1("失败", "IC卡号不存在，请先将卡导入"),

    ErrorRecord_1("失败", "与甲骨文通信失败，请稍后再试"),
    ErrorRecord_2("失败", "已同步成功，请勿重复操作"),

    OfficeVehicles_1("失败", "部门信息关联失败，无当前部门信息"),

    WeightDeduction_1("失败", "扣重供货单不能为空"),

    Weight_1("失败", "该订单本次过磅信息已存在"),
    Weight_2("失败", "请先添加一次过磅信息"),
    Weight_3("失败", "过磅失败"),
    Weight_4("失败", "订单已完成，不可操作"),

    Recharge_1("失败", "当天汇率获取失败，请联系管理员输入"),
    Recharge_2("失败", "输入汇率超过增减范围，请重新输入"),
    Recharge_3("失败", "不可设置之后的时间，请重新输入"),
    Recharge_4("失败", "已使用，不可作废"),
    Recharge_5("失败", "客户有可用余额，请勿删除"),
    Recharge_6("失败", "停用中，请联系管理员"),
    Recharge_7("失败", "退款金额不能为空,且>=0，<=可用余额"),
    Recharge_8("失败", "消除金额不能为空,且>=0，<=可用余额"),
    Recharge_9("失败", "没有查询到银行账户信息"),

    SUPPLY_ORDER_1("失败", "供货计划可供数量不足"),
    SUPPLY_ORDER_2("失败", "过磅重量输入异常"),
    SUPPLY_ORDER_3("失败", "请输入密度"),


    INVOICING_1("失败", "异常，未选择客户"),
    INVOICING_2("失败", "请选择订单"),
    INVOICING_3("失败", "订单选择异常，订单不属于该客户"),
    INVOICING_31("失败", "订单选择异常，订单属于散户"),
    INVOICING_32("失败", "订单选择异常，订单属于经销商"),
    INVOICING_4("失败", "暂无发票头，请联系相关人员"),
    INVOICING_5("失败", "暂无发票模板，请联系相关人员"),
    INVOICING_6("失败", "订单选择异常，存在已开票订单"),
    INVOICING_7("失败", "无发票信息，请先添加"),
    INVOICING_8("失败", "订单选择异常，扣款记录不在1~15条内"),
    INVOICING_9("失败", "扣款对应的充值类型不同，请重新选择"),
    INVOICING_10("失败", "当前客户开票信息已存在"),
    INVOICING_11("失败", "文件生成异常"),
    INVOICING_12("失败", "请选择同种产品"),
    INVOICING_13("失败", "修改列表数据异常"),
    INVOICING_14("失败", "订单扣款记录缺失充值记录等信息，请联系管理员处理"),

    SYSTEM_1("失败", "系统异常，请联系管理员"),
    SYSTEM_2("失败", "同步失败，请查看发送记录"),

    SalesPlan_1("失败", "产品该日期销售计划已存在"),

    DELETE_1("失败", "删除失败，订单已完成"),
    DELETE_2("失败", "删除失败，记录未作废"),

    Batch_1("失败", "编号已存在"),

    BillingRecords_1("失败", "当前开单信息已失效"),
    BillingRecords_2("失败", "已收款，不可删除"),
    BillingRecords_3("失败", "组合金额计算重量小于下单重量，请重新输入"),

    Customer_1("失败", "客户已存在，可以直接充值"),
    Customer_2("失败", "客户名称已存在，不允许重复录入"),

    USER_1("失败", "用户未登录"),
    USER_2("失败", "未绑定客户"),

    WovenBag_1("失败", "已确认，无需操作"),
    WovenBag_2("失败", "不可选择当前班次"),

    Car_1("失败", "车牌已存在,已将当前客户关联"),
    Car_2("失败", "车牌已存在"),

    Input_1("失败", "输入非法，包含空格、斜杠或反斜杠"),
    Input_2("失败", "小数位数不能超过两位"),
    Input_3("失败", "单价不能为空或0"),

    BUNDLE_RECHARGE_1("失败", "组合充值记录明细为空"),
    ;
    private final String code;
    private final String name;
    PublicReturn(String code, String name) {
        this.code = code;
        this.name = name;
    }
    public String getCode(){
        return this.code;
    }
    public String getName(){
        return this.name;
    }
}
